package com.library.bookmanagement.entity;

import java.util.Date;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：系统管理员类
 */
public class SuperAdmin {
    private Integer superId;

    private String superName;

    private String superPassword;

    private String superEmail;

    private Date createTime;

    private Date lastTime;

    private String imgUrl;

    private Integer role;

    public SuperAdmin(String username, int i) {
        this.superName = username;
        this.role = i;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public SuperAdmin(){}
    public SuperAdmin(String username, String password, Integer role) {
    }

    public SuperAdmin(String superName, String superPassword, String superEmail, Date createTime, Date lastTime, String imgUrl, String token, Integer role) {
        this.superName = superName;
        this.superPassword = superPassword;
        this.superEmail = superEmail;
        this.createTime = createTime;
        this.lastTime = lastTime;
        this.imgUrl = imgUrl;
        this.role = role;
    }

    public SuperAdmin(Integer superId, String superName, String superPassword, String superEmail, Date createTime, Date lastTime, String imgUrl, String token, Integer role) {
        this.superId = superId;
        this.superName = superName;
        this.superPassword = superPassword;
        this.superEmail = superEmail;
        this.createTime = createTime;
        this.lastTime = lastTime;
        this.imgUrl = imgUrl;
        this.role = role;
    }

    public Integer getId() {
        return superId;
    }

    public void setId(Integer superId) {
        this.superId = superId;
    }

    public String getName() {
        return superName;
    }

    public void setName(String superName) {
        this.superName = superName == null ? null : superName.trim();
    }

    public String getPassword() {
        return superPassword;
    }

    public void setPassword(String superPassword) {
        this.superPassword = superPassword == null ? null : superPassword.trim();
    }

    public String getSuperEmail() {
        return superEmail;
    }

    public void setSuperEmail(String superEmail) {
        this.superEmail = superEmail == null ? null : superEmail.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
    }

}